import { defineConfig } from 'vite'
import { resolve } from 'path'

// https://vite.dev/config/
export default defineConfig({
  build: {
    emptyOutDir: false,
    lib: {
      entry: resolve(__dirname, 'src/code.ts'),
      name: 'code',
      formats: ['cjs'],
      fileName: () => `code.js`
    }
  }
})
